﻿namespace jQube.Web
{
    using System.Web.UI;
    using System.Web.UI.HtmlControls;

    internal class HtmlFormWrapper : IHtmlForm
    {
        public HtmlFormWrapper(HtmlForm htmlForm)
        {
            this.HtmlForm = htmlForm;
        }

        public HtmlForm HtmlForm { get; private set; }

        #region Miembros de IHtmlForm

        string IHtmlForm.ClientID
        {
            get { return this.HtmlForm.ClientID; }
        }

        void IHtmlForm.RenderControl(HtmlTextWriter writer)
        {
            this.HtmlForm.RenderControl(writer);
        }

        void IHtmlForm.SetRenderMethodDelegate(RenderMethod renderMethod)
        {
            this.HtmlForm.SetRenderMethodDelegate(renderMethod);
        }

        #endregion
    }
}
